import request from '@/utils/request'

// 查询mysql数据备份日志列表
export function listBacklog(query) {
  return request({
    url: '/backups/backlog/list',
    method: 'get',
    params: query
  })
}

// 查询mysql数据备份日志详细
export function getBacklog(id) {
  return request({
    url: '/backups/backlog/' + id,
    method: 'get'
  })
}

// 新增mysql数据备份日志
export function addBacklog(data) {
  return request({
    url: '/backups/backlog',
    method: 'post',
    data: data
  })
}

// 修改mysql数据备份日志
export function updateBacklog(data) {
  return request({
    url: '/backups/backlog',
    method: 'put',
    data: data
  })
}

// 删除mysql数据备份日志
export function delBacklog(id) {
  return request({
    url: '/backups/backlog/' + id,
    method: 'delete'
  })
}
